package com.wawu.controller.testPackage;

import com.wawu.annotation.IOC.component.RestController;
import com.wawu.annotation.controller.Mapping.GetMapping;
import com.wawu.annotation.controller.Mapping.RequestMapping;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping(value = "/api/sub")
public class SubController {
    @GetMapping("/get")
    public Object getMap(){
        Map<String,Object> map=new HashMap<>();
        map.put("code",1);
        map.put("data","11111");
        return map;
    }
    @GetMapping("/getThisPackage")
    public Object getThisPackage(){
        return this.getClass().getPackage();
    }

}
